from .napcat import NapCatBase
from ..config.napcat import NC_URL, NC_PORT

_global_napcat = None

# 获取全局的 NapCat 实例
def get_global_napcat(url=NC_URL, port=NC_PORT):
    global _global_napcat
    if _global_napcat is None:
        _global_napcat = NapCatBase(url, port)
    return _global_napcat
